package com.atguigu.tingshu.account.rpc;

import com.atguigu.tingshu.account.service.RechargeInfoService;
import com.atguigu.tingshu.account.service.UserAccountService;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author codingyz
 * @Description
 * @date 2025/3/28 19:18
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/inner/accountInfo/")
public class UserAccountController {

    @Autowired
    private UserAccountService userAccountService;


    @PostMapping("checkAndLockAmount")
    Result<AccountLockResultVo> checkAndLockAmount(@RequestBody AccountLockVo userAccountVo){
        return userAccountService.checkAndLockAmount(userAccountVo);
    }


}
